@ECHO OFF
REM SET output=FileList.txt
SET	fileList=
ECHO 'Files: ' > %output%

:Loop
IF (%1) == () GOTO Exit
REM IF %~z1 == 0 GOTO Next
REM CALL :FolderAction %~f1
REM ECHO %1 >> %output%
SET fileList=%fileList% %1
REM CALL :FileAction %~f1

:Next
SHIFT
GOTO Loop

:Exit
ADEVSO.Test.exe %fileList%
REM ADEVSO.Test.exe output
REM PAUSE